<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<link rel="stylesheet" href="${staticServer}/inc/style/main.css"/>
	<link rel="stylesheet" href="${staticServer}/inc/style/page.css"/>
	<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css"/>
	<link rel="stylesheet" href="${staticServer}/css/consultant_client.css"/>
	<link rel="stylesheet" href="${staticServer}/css/consultant_personal_stat.css"/>
	<script src="${staticServer}/inc/js/jquery.js"></script>
	<script src="${staticServer}/inc/js/pageset.js"></script>
	<script src="${staticServer}/inc/js/htmlfilter.js"></script>
	<script src="${staticServer}/inc/js/model_resp.js"></script>
	<script src="${staticServer}/inc/js/datepicker.js"></script>
	<script src="${staticServer}/js/web/consultant_personal_stat.js?1.1"></script>
	<script>
	//var infopad = parent.infopad;

	function init()
	{
	
	}

	function starquery( type )
	{
		var url = "";

		if( type == 0 )
		{
			var sdate = $( "#start_date" ).val();
			var edate = $( "#end_date" ).val();
			var param_str = "";

			if( !empty( sdate ) ) param_str += "&sdate=" + sdate;
			if( !empty( edate ) ) param_str += "&edate=" + edate;
			url = "?" + param_str;
		}
		else
		{
			url = "?";
		}

		location.href = url;
	}
	</script>
</head>

<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>咨询师业务统计</li>
			<li>&gt;</li>
			<li class="current">个人业绩月统计分析</li>
		</ul>
	</div>

	<div id="container">
		<div id="title"></div>

		<div class="fieldset_container">
			<fieldset>
				<legend>查询条件</legend>
				<ul>
					<li><label>查询月份：</label><input type="text" id="start_date" size="15" value="${sdate}" rel="DATE::Y-m"/></li>
					<li><label>结束月份：</label><input type="text" id="end_date" size="15" value="${edate}" rel="DATE::Y-m" /></li>
					<li class="controlbar"><input type="button" value=" 统 计 " onclick="starquery(0)"/>
						<input type="button"
							   value=" 重 置 " onclick="starquery(1)"/></li>
				</ul>
			</fieldset>
		</div>

		<table>
			<tr class="fields">
				<th>客户资源统计</th>
			</tr>
			<tr>
				<td>
						<table id="tbl_client_" style="min-width: 100px; width: 49%; float: left; margin: 2px;">
							<tr class="fields">
								<th colspan="2" style=""><span class="unit size14 stress"><#if start??>${start?date}</#if>到<#if end??>${end?date}</#if></span></th>
							</tr>
							
							<tr>
								<th width="40%">客户总数量<p class="caption">不包括转出数（含无效）</p></th>
								<td width="60%"><span class="statbar" rel="root">${zoncount}</span></td>
							</tr>

							<tr>
								<th>无效数量<p class="caption">无效、未知、广告推销等</p></th>
								<td><span class="statbar" rel="<#if wuxiaocount=='0'>0/2<#else>root</#if>">${wuxiaocount}</span></td>
							</tr>

							<tr>
								<th>本地数量<p class="caption">本地有中心客户</p></th>
								<td><span class="statbar" rel="<#if bendicount=='0'>0/2<#else>root</#if>">${bendicount}</span></td>
							</tr>

							<tr>
								<th>外地数量<p class="caption">外地无中心客户</p></th>
								<td><span class="statbar" rel="<#if waidicount=='0'>0/2<#else>root</#if>">${waidicount}</span></td>
							</tr>

							<tr>
								<th>转出数量<p class="caption">自登记已转出的数量</p></th>
								<td><span class="statbar" rel="<#if zhuanchucount=='0'>0/2<#else>root</#if>">${zhuanchucount}</span></td>
							</tr>
						</table>
					
				</td>
			</tr>
		</table>

		<table>
			<tr class="fields">
				<th>预约统计</th>
			</tr>
			<tr>
				<td>
					
						<table id="tbl_reserve_" style="min-width: 100px; width: 49%; float: left; margin: 2px;">
							<tr class="fields">
								<th colspan="2" style=""><span class="unit size14 stress"><#if start??>${start?date}</#if>到<#if end??>${end?date}</#if></span></th>
							</tr>

							<tr>
								<th width="40%">预约数量</th>
								<td width="60%"><span class="statbar" rel="root">${zonreserve}</span></td>
							</tr>

							<tr>
								<th>实到数量</th>
								<td><span class="statbar" rel="<#if shidao=='0'>0/2<#else>root</#if>">${shidao}</span></td>
							</tr>

							<tr>
								<th>非测评数量</th>
								<td><span class="statbar" rel="<#if feicep=='0'>0/2<#else>root</#if>">${feicep}</span></td>
							</tr>

							<tr>
								<th>实际到访率</th>
								<td><span class="statbar percent" rel="<#if yuyuebaifen=='0'>0/2<#else>root</#if>">${yuyuebaifen}</span></td>
							</tr>
						</table>
					
				</td>
			</tr>
		</table>

		<table>
			<tr class="fields">
				<th>接待表数据统计</th>
			</tr>
			<tr>
				<td>
					
						<table id="tbl_reception_<?php echo $i ?>" style="min-width: 100px; width: 49%; float: left; margin: 2px;">
							<tr class="fields">
								<th colspan="2" style="">
									<span class="unit size14 stress"><#if start??>${start?date}</#if>到<#if end??>${end?date}</#if></span></th>
							</tr>

							<tr>
								<th width="40%">接待数量</th>
								<td width="60%"><span class="statbar" rel="root">${zonRece}</span></td>
							</tr>

							<tr>
								<th>成单数量</th>
								<td><span class="statbar" rel="<#if zonChendan=='0'>0/2<#else>root</#if>">${zonChendan}</span></td>
							</tr>
							
								<tr>
								<th>接待成功率</th>
								<td><span class="statbar" rel="<#if totrate=='0'>0/2<#else>root</#if>">${totrate}</span></td>
							</tr>
							
							<tr>
								<th>跟踪数量</th>
								<td><span class="statbar" rel="<#if zonGenz=='0'>0/2<#else>root</#if>">${zonGenz}</span></td>
							</tr>
							
							<tr>
								<th>当月业绩汇总</th>
								<td><span class="statbar" rel="<#if sum=='0'>0/2<#else>root</#if>">${sum}</span></td>
							</tr>
						</table>
					
				</td>
			</tr>
		</table>

		<div class="remark">
			<ul>
				<li><span class="title">注意事项：</span></li>
				<li>1、鼠标悬停在统计条上时，可显示具体的数值</li>
				<li>2、第一行显示的统计条，一般都是统计总数</li>
				<li>3、该页面功能统计一个月中连续4周的数据情况，可能跨越不同的月份</li>
				<li>4、由于统计需要占用大量的资源，请不要频繁进行统计</li>
				<li>&nbsp;</li>
			</ul>
		</div>
	</div>
</body>
</html>